package com.lxj.service.impl;

import com.lxj.domain.Sign;
import com.lxj.mapper.SignMapper;
import com.lxj.service.SignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class SignServiceImpl implements SignService {
    @Autowired
    private SignMapper signMapper;
    @Override
    public List<Sign> selectAll(Sign sign) {
        return signMapper.selectAll(sign);
    }

    @Override
    public int signInDelete(Integer[] id) {
        return signMapper.signInDelete(id);
    }

    @Override
    public int getCount() {
        return signMapper.getCount();
    }

    @Override
    public Sign findById(Integer id) {
        return signMapper.findById(id);
    }

    @Override
    public int edit(Sign sign) {
        return signMapper.edit(sign);
    }

    @Override
    public int add(Sign sign) {
        return signMapper.add(sign);
    }

    @Override
    public int judge(Sign sign) {
        return signMapper.judge(sign);
    }

    @Override
    public List<Sign> selectOutAll(Sign sign) {
        return signMapper.selectOutAll(sign);
    }

    @Override
    public int getOutCount() {
        return signMapper.getOutCount();
    }

    @Override
    public int signOutDelete(Integer[] id) {
        return signMapper.signOutDelete(id);
    }

    @Override
    public Sign findOutById(Integer id) {
        return signMapper.findOutById(id);
    }

    @Override
    public int outEdit(Sign sign) {
        return signMapper.outEdit(sign);
    }

    @Override
    public int outJudge(Sign sign) {
        return signMapper.outJudge(sign);
    }

    @Override
    public int outAdd(Sign sign) {
        return signMapper.outAdd(sign);
    }

    @Override
    public List<Sign> findAll(Sign sign) {
        return signMapper.findAll(sign);
    }

    @Override
    public int getNumber(Sign sign) {
        return signMapper.getNumber(sign);
    }

    @Override
    @Transactional
    public int signDelete(Sign sign) {
        delete(sign);
        return signMapper.signDelete(sign);
    }

    @Override
    public void delete(Sign sign) {
       signMapper.delete(sign);
    }
}
